<script setup lang="ts">
defineProps<{
  text?: string | number;
}>();
</script>

<template>
  <view class="inline-block relative">
    <view
      class="absolute top-0 right-0 px-2 py-0.5 border-1 border-error rounded-full text-error text-xs bg-white -translate-y-1/2 translate-x-[40px] leading-none"
    >
      <text>{{ text }}</text>
    </view>
    <slot />
  </view>
</template>
